package com.qf.java2102.qihaonan.hotel.dao;

import com.qf.java2102.qihaonan.hotel.pojo.Food;

import java.sql.SQLException;
import java.util.List;

/**
 * @author qhn
 * @version 1.0
 */
public interface IFoodDao {
    /**
     * 根据条件查询菜品数据
     * @param foodName
     * @param typeId
     * @return
     */
    List<Food> findByCondition(String foodName, Long typeId, Integer currentPage, Integer pageSize) throws SQLException;

    /**
     * 根据条件计数
     * @param foodName
     * @param typeId
     * @return
     * @throws SQLException
     */
    Long countByCondition(String foodName, Long typeId) throws SQLException;

    Food findById(Long foodId) throws SQLException;
}
